package org.example.pojo.select;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

@Data
@Schema(name = "物品领用DItemSelect" ,description = "物品领用记录查询对象")
public class DItemSelect {

    @Schema(description = "物品领用号")
    private Integer mid;

    @Schema(description = "房间号")
    private String apartmentId;

    @Schema(description = "人员Id")
    private Integer sid;

    @Schema(description = "人员工号")
    private String staffId;

    @Schema(description = "人员姓名")
    private String staffName;

    @Schema(description = "物品名称")
    private String itemName;

    @Schema(description = "物品数量")
    private Integer itemNumber;

    @Schema(description = "记录更新时间")
    @JsonFormat(pattern="yyyy-MM-dd",timezone = "GMT+8")
    @DateTimeFormat(pattern="yyyy-MM-dd")
    private String updateDate;

    @Schema(description = "归还时间")
    @JsonFormat(pattern="yyyy-MM-dd",timezone = "GMT+8")
    @DateTimeFormat(pattern="yyyy-MM-dd")
    private String backDate;

    @Schema(description = "物品描述")
    private String itemDesc;

    @Schema(description = "物品当前状态")
    private Integer itemStatus;

    @Schema(description = "记录是否被删除")
    private Integer isDeleted;

    @Schema(description = "当前页")
    private Integer currentPage;

    @Schema(description = "总共页数")
    private Integer pageSize;
}
